Skip to content

feat(android): forward app hang options to NDK#5623

Draft
bitsandfoxes wants to merge 11 commits into
mainfrom
feat/android-app-hang-heartbeat
Draft

feat(android): forward app hang options to NDK#5623
bitsandfoxes wants to merge 11 commits into
mainfrom
feat/android-app-hang-heartbeat

Conversation

@bitsandfoxes

@bitsandfoxes bitsandfoxes commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

📜 Description

This PR relies on getsentry/sentry-native#1823 first.
Forwards app hang options to NDK.

💡 Motivation and Context

sentry-native now sports an app hang capture feature, see getsentry/sentry-native#1806

Hybrid SDKs can use this to let their main/UI thread emit a heartbeat. If this heartbeat times out sentry-native will capture this as App Hang event.

💚 How did you test it?

Not yet. Apart from unit tests that forward the options.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against cfd5870

@bitsandfoxes bitsandfoxes mentioned this pull request Jul 1, 2026
8 tasks
@sentry

sentry Bot commented Jul 6, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.47.0 (1) release

⚙️ sentry-android Build Distribution Settings

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 310.33 ms 350.40 ms 40.06 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
3d205d0 352.15 ms 432.53 ms 80.38 ms
e59e22a 368.02 ms 432.00 ms 63.98 ms
806307f 357.85 ms 424.64 ms 66.79 ms
d364ace 384.53 ms 453.51 ms 68.98 ms
4c04bb8 307.93 ms 362.34 ms 54.41 ms
bb0ff41 312.86 ms 363.78 ms 50.92 ms
91bb874 310.68 ms 359.24 ms 48.56 ms
11f90db 314.26 ms 372.43 ms 58.17 ms
f6cdbf0 314.19 ms 357.59 ms 43.40 ms
8687935 332.52 ms 362.23 ms 29.71 ms

App size

Revision Plain With Sentry Diff
3d205d0 1.58 MiB 2.10 MiB 532.97 KiB
e59e22a 1.58 MiB 2.20 MiB 635.34 KiB
806307f 1.58 MiB 2.10 MiB 533.42 KiB
d364ace 1.58 MiB 2.11 MiB 539.75 KiB
4c04bb8 0 B 0 B 0 B
bb0ff41 0 B 0 B 0 B
91bb874 1.58 MiB 2.13 MiB 559.07 KiB
11f90db 0 B 0 B 0 B
f6cdbf0 0 B 0 B 0 B
8687935 1.58 MiB 2.19 MiB 619.17 KiB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant